#ifndef CGAMING_H
#define CGAMING_H

#include "Typedef.h"
#include "Struct.h"
#include "Enum.h"

class CUnit;
class CBuilding;

class CGaming
{
public :
						CGaming(void);
						~CGaming(void);
			void		Put(void);
			int			Run(void);
			int			GetSceneNumber(void);
			void		Mouse_Hit(int const &_refnMouseButton, int const &_refnX, int const &_refnY);
			void		Mouse_Moving(int const &_refnX, int const &_refnY);
			void		KeyBoard_Hit(int const &_refnKey);

private :	
	ls_Unit		m_pUnits;
	ls_Unit		m_pEnumys;

	SUnitAbility	m_SAbility[12];

	SBuildingAbility m_SBuilding[2];

	CBuilding* m_pBuildings[2];

	int		m_nUnitNumber;
	int		m_nMoney;
	int		m_nState;
	int		m_nNowTime;
	int		m_nAddCameraPosition_X;
	int		m_nGoldIncreaseDelay;
	int		m_nGoldIncreaseFinalTime;
	int		m_nUnitCreateDelay[6];
	int		m_nUnitCreateFinalTime[6];

			CUnit*		CreateUnit(int _nType);

			void		EnumyPut(void);
			void		EnumyAct(void);
			void		UnitDestroy(ls_Unit::iterator& _refitr, EPlayerType _EPlayerType);
};

#endif